Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(codedeploy): ServerDeploymentGroup takes AutoScalingGroup instead of IAutoScalingGroup #9252

Merged
merged 4 commits into from
Aug 8, 2020

Conversation

skinny85
Copy link
Contributor

Fixes #9175


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@skinny85 skinny85 requested a review from NetaNir July 24, 2020 21:27
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 24, 2020
@NetaNir NetaNir self-assigned this Jul 25, 2020
@@ -703,6 +710,7 @@ export class AutoScalingGroup extends AutoScalingGroupBase implements

this.autoScalingGroup = new CfnAutoScalingGroup(this, 'ASG', asgProps);
this.osType = imageConfig.osType;
this.operatingSystemType = imageConfig.osType;
Copy link
Contributor

@NetaNir NetaNir Aug 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add an enum value of UNDEFINED to the OperatingSystemType Enum and keep one property?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. How about UNKNOWN for the third value?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NetaNir what do you want to do for OperatingSystemType.UNKNOWN for this function:

public static forOperatingSystem(os: OperatingSystemType): UserData {
switch (os) {
case OperatingSystemType.LINUX: return UserData.forLinux();
case OperatingSystemType.WINDOWS: return UserData.forWindows();
}
}
?

@NetaNir NetaNir added the pr/do-not-merge This PR should not be merged at this time. label Aug 3, 2020
@skinny85 skinny85 added the pr-linter/exempt-test The PR linter will not require test changes label Aug 6, 2020
@skinny85 skinny85 force-pushed the fix/codedeploy-auto-scaling-groups branch from e9a03c8 to 02ee36a Compare August 6, 2020 23:01
@skinny85 skinny85 requested a review from rix0rrr August 6, 2020 23:03
@skinny85 skinny85 removed the pr/do-not-merge This PR should not be merged at this time. label Aug 7, 2020
@skinny85 skinny85 force-pushed the fix/codedeploy-auto-scaling-groups branch from d3075fb to 2889f73 Compare August 7, 2020 23:06
@skinny85 skinny85 force-pushed the fix/codedeploy-auto-scaling-groups branch from 2889f73 to 1d27838 Compare August 8, 2020 01:15
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 1d27838
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Aug 8, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 9ff55ae into aws:master Aug 8, 2020
@skinny85 skinny85 deleted the fix/codedeploy-auto-scaling-groups branch August 8, 2020 02:03
eladb pushed a commit that referenced this pull request Aug 10, 2020
… of IAutoScalingGroup (#9252)

Fixes #9175

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. pr-linter/exempt-test The PR linter will not require test changes
Projects
None yet
4 participants